package com.example.dee.service.impl;

import com.example.dee.dao.LoginDAO;
import com.example.dee.pojo.User;
import com.example.dee.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName UserServiceImpl
 * @Author zyf
 * @Date 2022/7/20 0018 10:52
 * @Version
 **/
@Service
public class LoginServiceImpl implements LoginService {
    @Resource
    LoginDAO loginDao;

    @Override
    public String selectPassword(String username) {
        return loginDao.selectPassword(username);
    }

    @Override
    public int checkUser(String username) {
        return loginDao.checkUser(username);
    }

    @Override
    public Boolean regist(User user) {
        return loginDao.register(user);
    }
}
